package xj.graph2d.command;

import xj.graph2d.DrawShape;
import xj.graph2d.SimpleDrawDocument;
import xj.graph2d.SimpleDrawView;

public class MoveCircumferenceCommand extends DeltaCommand {

  public MoveCircumferenceCommand(SimpleDrawView view, SimpleDrawDocument doc,
      DrawShape shape, float startx, float starty) {
    super(view, doc, shape);
    this.startx = startx;
    this.starty = starty;
  }

  @Override
  protected void forward() {
    shape.moveCircumference(startx + x, starty + y);
  }

  @Override
  protected void backward() {
    shape.moveCircumference(startx, starty);
  }

  protected float startx;

  protected float starty;

}
